// 下意识就是数组的查找方法，也通过了测试，小惊讶
var searchRange = function (nums, target) {
    let res1 = nums.indexOf(target)
    let res2 = nums.lastIndexOf(target)
    return [res1, res2]
};